/**
 * Copyright (c) 2016-2019 人人开源 All rights reserved.
 *
 * https://www.renren.io
 *
 * 版权所有，侵权必究！
 */

package com.songlanyun.modules.sys.controller;

import com.songlanyun.common.annotation.SysLog;
import com.songlanyun.common.utils.PageUtils;
import com.songlanyun.common.utils.R;
import com.songlanyun.common.validator.ValidatorUtils;
import com.songlanyun.modules.sys.entity.SysDictEntity;
import com.songlanyun.modules.sys.service.SysDictService;
import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.Arrays;
import java.util.List;
import java.util.Map;

/**
 * 数据字典
 *
 * @author Mark sunlightcs@gmail.com
 */
@RestController
@RequestMapping("api/sys/dict")
public class SysDictApiController {
    @Autowired
    private SysDictService sysDictService;


    /**
     * 不分页
     */
    @GetMapping("/select")
//    @RequiresPermissions("sys:dict:list")
    public R select(@RequestParam Map<String, Object> params){
        List<SysDictEntity> list = sysDictService.select(params);

        return R.ok().put("list", list);
    }


}
